package com.brush.web.controller;

import com.brush.app.domain.req.Suggestion.query.AppSuggestionQueryReq;
import com.brush.app.domain.resp.Suggestion.AppSuggestionResp;
import com.brush.app.service.AppSuggestionService;
import com.brush.common.core.controller.BaseController;
import com.brush.common.core.domain.R;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "后台-意见反馈管理")
@RestController
@RequestMapping(value = "/admin/brush/suggestion")
public class AdminSuggestionController extends BaseController {
    @Autowired
    private AppSuggestionService appSuggestionService;
/*
* 分页查询
* */
    @PreAuthorize("@ss.hasPermi('app:suggestion:list')")
    @ApiOperation(value = "分页查询")
    @GetMapping("/list")
    public R<PageInfo<AppSuggestionResp>> pagination(AppSuggestionQueryReq req){
        PageInfo<AppSuggestionResp> page = this.appSuggestionService.paginationQuery(req);
        return R.ok(page);
    }
}
